package com.example.observepattern.demo;

/**
 * @author liw
 * @date 2022-10-27
 */
public class Client {

    public static void main(String[] args) {
        WeatherData weatherData = new WeatherData();
        CurrentCondition weatherCondition = new CurrentCondition();
        BaiduSite site = new BaiduSite();

        weatherData.registerObserver(weatherCondition);
        weatherData.registerObserver(site);

        weatherData.setData(10f,100f,30.14f);
    }
}
